#include<iostream>
using namespace std;
int hj(int a,int b){
}
int main(){
    int a=1,b=1,x=1,y=1,countz,countm;
    char j,i;
    cin>>j;
    if(j>='0' && j<='9'){
        a=j-'0';
        cin>>j>>b;
    }
    else{
        cin>>j>>i>>b;
        a=1-(j-'0');
    }
	while(a!=0){
        cin>>i>>x>>j>>y;
        countm*=y*b;
        if(i=='+'){
            countz+=a*y+x*b;
        }
        else{
            countz-=a*y+x*b;
        }
	}
}
